package com.aier.admin.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Component;

import com.aier.admin.entity.SysCity;
import com.aier.admin.entity.mapper.SysCityRowMapper;
import com.aier.admin.service.IAdminCitiesMapService;
import com.aier.common.dao.ICommonDAO;
@Component("adminCitiesMapService")
public class AdminCitiesMapServiceImpl_J implements IAdminCitiesMapService {
    @Resource(name="commonDao")
    private ICommonDAO commonDao;
    public void setCommonDao(ICommonDAO commonDao) {
        this.commonDao = commonDao;
    }
    
    
    
    @SuppressWarnings("unchecked")
    @Override
    public List<SysCity> searchCity(Integer sub_cid) {
        return (List<SysCity>)commonDao.list("SELECT * FROM sys_city where sub_cid=?", 
        		new Object[]{sub_cid}, new SysCityRowMapper());
    }
    
    
}
